<tr>
	<?php
	$id_images = $this->uri->segment(3,0);
//	echo $id_images;
//	echo $id_album;
	$this->load->database();
	$query = $this->db->query("select * from images where id_images='$id_images'");
	$loop = 0;
	foreach ($query->result() as $row):
	if($row->images=="" || $row->images==false){
		$row->images = site_url("images/nopicture.jpg");
	} else {
		$row->images = site_url(array('project','loadImages',$row->id_images));
	}
	$loop++;
		if($loop % 5==1){
				echo "</tr><tr>";
			}
//			echo $row->id_album;
	?>
	
	 <td width="140" align="center" valign="top">
	 <a href=""><img class="picture" src="<?php echo $row->images;?>" /></a>
	<br />
	 <?php echo $row->name ?>
	<br /><br />
	</td>
	<?php endforeach ?> 
</tr>